<template>
  <div class="big-box">
    <!-- 头部区域 -->
    <Top></Top>
    <div class="area-center title-center">
      <!-- 我的商会区域 -->
      <Cham :mine="mine"></Cham>
      <!-- 内部参考区域 -->
      <legal :project="project"></legal>
      <Tabbar></Tabbar>
    </div>
  </div>
</template>

<script>
import Top from "@/components/my/TopPage.vue";
import Cham from "@/components/my/ChamPage.vue";
import legal from "@/components/my/GalPage.vue";
import Tabbar from "@/components/public/TabbleView.vue";
import { getMineTitle } from "@/api/index";
export default {
  data() {
    return {
      mine: [],
      project: [],
    };
  },
  components: {
    Top,
    Cham,
    legal,
    Tabbar,
  },
  //底部栏的高亮
  mounted() {
    getMineTitle().then((res) => {
      if (res.data.code == 200) {
        this.mine = res.data.data[0];
        this.project = res.data.data[1];
      }
    });
  },
  created() {
    sessionStorage.setItem("active", 4);
  },
};
</script>

<style scoped>
.big-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
}
/* 版心区域 */
.center {
  width: 99%;

}
</style>